|
|
|
|
|
|
|
After you create the property page, you need to connect it to the control that you created it for. To do this, you must first open the design view of the control, and then double-click the PropertyPages property in the Properties window. This will display the control's Property Pages dialog box, as shown in Figure 11.7. |
|
|
|
|
|
|
|
|
Figure 11.7.
Connecting the new control with its related Property
Pages that you just created. |
|
|
|
|
|
|
|
|
In this dialog box, check each Property Page that you want to appear when you open the control's Property Pages dialog box. Also, you can place the pages in the order that you want them displayed. You may have noticed in Figure 11.7 that three property pages were listed that you didn't create. Visual Basic provides these three standard property pages: |
|
|
|
 |
|
|
|
|
StandardFont |
|
|
|
 |
|
|
|
|
StandardColor |
|
|
|
 |
|
|
|
|
StandardPicture |
|
|
|
|
|
|
|
|
The Properties window automatically associates these properties with the appropriate standard property page. They won't be automatically added to the Property Pages dialog box, however; you must do this manually. |
|
|
|
|
|
|
|
|
Using the Property Page Wizard |
|
|
|
|
|
|
|
|
You haven't manually created the property page because, again, Visual Basic comes with a wizard that does most of the work for you. Right-click the Project window, and then choose Add, Property Page to display the Add PropertyPage dialog box (see Figure 11.8). Select the Property Page wizard and click OK to start creating the property page. |
|
|
|
|
|